﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;

namespace UnionManager.Models
{
    public class UnionDB : BaseModel, IUnionDB
    {
        public CSD GetUnion(int id_uni)
        {
            if (DB.CSDs.Any(a => a.Id_CSD == id_uni))
            {
                return DB.CSDs.Single(a => a.Id_CSD == id_uni);
            }
            return null;
        }
    }
}